package com.tuo51.evaluate.repositories.appusers;

import com.tuo51.evaluate.domain.appusers.PromoCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface PromoCodeRepository extends JpaRepository<PromoCode, String>, JpaSpecificationExecutor<PromoCode> {

    PromoCode getById(String id);

    PromoCode getByCode(String code);

}
